#include <iostream>
#include <math.h>
using namespace std;
class Diem{
	private:
		int x;
		int y;
	public:
		// Constructor
		Diem(int x = 0, int y = 0);

		// Des
		~Diem();
        double kc(Diem d);
		void hienThi();
		Diem cong(Diem d1);


};
Diem Diem::cong(Diem d1){
    Diem tmp;
    tmp.x = x + d1.x;
    tmp.y = y + d1.y;
    return tmp;
}
Diem::Diem(int x, int y)
{
	this->x = x;
	this->y = y;
}
Diem::~Diem(){}
double Diem::kc(Diem d)
{
     return sqrt(pow((x - d.x),2)  + pow((y - d.y),2));
}
void Diem::hienThi(){
	cout<<"Tao Do: "<<x<<"  "<<y;
}
int main()
{
	Diem d1(1,1);
	Diem d2(3,4);

	Diem d;
	d = d1.cong(d2);
	d.hienThi();

}











